﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TodayDish.aspx.cs" Inherits="Business_Notics_TodayDish" Theme="normal"%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>今日菜谱</title>
<link href="../../css/MessageTable.css" rel="stylesheet" type="text/css" /> 
</head>
<body style="background-color:#fcf6ec">
    <form id="form1" runat="server" method="post">
    
    <asp:ScriptManager ID="Scriptmanager1" runat="server" EnableScriptGlobalization="true"
            EnableScriptLocalization="true">
            <Scripts>
                <asp:ScriptReference Path="../../js/MobileJS.js" />
            </Scripts>
        </asp:ScriptManager>
    <div>
            <div class="normalnav">
                <div class="normalcontent">
                    <span style="color: #ffffff">通知公告>>></span><span style="color: #f6ff00">今日菜谱</span></div>
            </div>
            <table border="2"  cellpadding="5" cellspacing="1" bordercolor="#edc789"
                style="width:98%; text-align:center; background-color:#ffffff;border-collapse:collapse; margin-left:10px; top:40px; position:absolute;">
                <!--选择套餐-->
                <tr>
                    <td align="right" style="width: 30%">
                        <span style="color: Red;">*</span>选择套餐：</td>
                    <td style="width:70%; text-align:left; border:1px;" colspan="3">
                        <select id="lb_Set" runat="server" style="width:350px; height:120px;" multiple="true" onchange="dishonselected()"></select>
                        <asp:RequiredFieldValidator ID="RequirestyleLabelClassName" runat="server" ControlToValidate="lb_Set"
                            Display="Dynamic" ErrorMessage="<span class=reshow>(*)请至少选择一个套餐！</span>"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                
                <!--消息内容-->
                <tr>
                    <td align="right" style="width: 30%">
                        <span style="color: Red;">*</span>消息内容：</td>
                    <td style="width:70%; text-align:left; border:1px;" colspan="2">
                        <asp:TextBox ID="tb_MsgContent" runat="server" Width="250px" MaxLength="130" BorderWidth="1px" Height="80px" TextMode="MultiLine" Text="今日食堂套餐为："></asp:TextBox>
                        
                    </td>
                    <td style="vertical-align:top; text-align:left; border-left:0px;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tb_MsgContent"
                            Display="Dynamic" ErrorMessage="请填写发送消息内容！"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                
                <!--添加手机号码-->
                <tr>
                    <td align="right" style="width: 30%">
                        <span style="color: Red; overflow:hidden;">*</span>
                        <span style="overflow:hidden;">添加手机号码：</span></td>
                    <td style="width:200px; text-align:left; border-right:0px;" colspan="2">
                        <asp:TextBox ID="tb_Mobile" runat="server" Width="250px" MaxLength="11" BorderWidth="1px" Height="80px" TextMode="MultiLine"></asp:TextBox>

                    </td>
                    <td style="vertical-align:top; text-align:left; border-left:0px;">
                       <asp:Label ID="lbl_Mobile" runat="server" Text="请添加手机号码，多个手机号码请用逗号分隔"></asp:Label>
                        <br />
                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ErrorMessage="请至少选择或填写一个手机号码！" ControlToValidate="tb_Mobile">
                        </asp:RequiredFieldValidator>--%>
                        <br />
                        <span id="spanforError"></span>
                    </td>
                </tr>

                <!--参与人-->
                <tr>
                    <td align="right" style="width: 30%; height:150px;" valign="top">
                        <span style="color: Red;">*</span>参与人：</td>
                    <td style="width:200px; text-align:left; border:0px;" colspan="2">
                        <div style="display:inline;">
                       <select runat="server" id="ListBox1" style="width:252px; height:140px;" multiple="true">
                        
                       </select>
                        
                        </div>     
                    </td>
                    <td style="border:0px; text-align:left; vertical-align:top;">
                        <asp:CheckBox ID="cb_SelectAll" runat="server" Text="全选"/>
                        <br />
                        <asp:Button ID="btn_AddContact" runat="server" Text=" 添加联系人 " OnClick="btn_AddContact_Click" CssClass="buttons" CausesValidation="false"/>
                           <br />
                    </td>
                </tr>
                
                 <!--发送方式-->
                <tr>
                    <td align="right" style="width: 30%;" valign="top">
                        <span style="color: Red;">*</span>发送方式：</td>
                    <td style="width:550px; text-align:left;" colspan="3" id="TD1" runat="server">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                            
                        <asp:RadioButton ID="rb_Now" runat="server" Text="立即" GroupName="SendTime" AutoPostBack="true" OnCheckedChanged="rb_Now_CheckedChanged" Checked="true"/>
                        
                        <asp:RadioButton ID="rb_Timing" runat="server" Text="定时" GroupName="SendTime" OnCheckedChanged="rb_Timing_CheckedChanged" AutoPostBack="true" />
                        
                            <asp:TextBox ID="tb_SendTime" Width="80px" runat="server" ></asp:TextBox>
                            <asp:ImageButton runat="Server" ID="ibtn_SendTime" ImageUrl="~/Images/Calendar_scheduleHS.png" 
                                CausesValidation="false" AlternateText="点击选择日期"/>
                            <ajaxToolkit:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="tb_SendTime"
                                Format="yyyy-MM-dd" PopupButtonID="ibtn_SendTime"/>
                            <asp:DropDownList ID="ddl_SendHour" runat="server">
                            </asp:DropDownList>时
                            <asp:DropDownList ID="ddl_SendMinite" runat="server">
                            </asp:DropDownList>分  
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server"
                                 ErrorMessage="<span style='color:red; font-size:13px; font-weight:bold;'>发送日期格式不正确！</span>" ControlToValidate="tb_SendTime" Display="Dynamic" 
                                 ValidationExpression="^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$">
                            </asp:RegularExpressionValidator>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                   
                </tr>
                
                <tr>
                    <td align="left" class="navi_link" colspan="4">
                        <input type="image" name="submit" id="submit" src="../../Images/Basic/tianjia.gif"
                             onserverclick="btnSave_Click" runat="server"/> 发送
                    </td>
                </tr>
            </table>
        </div>
    </form> 
    
 
</body>
</html>
